﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Menu.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
</head>

<body>
              <div class ="align_center">
               <div class ="align_to_left">  
                 <div class ="align_to_right"> 
                   <div class ="logframeformainpage">
                    <div id="logindisplay">
                        @Html.Partial("_LogOnPartial")
                         </div>
                        </div>
                         </div>
                          </div>
                    </div>
                    <div id = "topmenu">
                        <ul>
                           
                            @if (User.IsInRole("Administrator"))
                            {
                            <li>
                                Администратор
                                    <ul>
                                        <li>
                                            @Html.ActionLink("Пользователи", "Index", "Administrator")
                                        </li>
                                        <li>
                                            @Html.ActionLink("Результаты", "ViewResult", "Administrator")
                                        </li>
                                        <li>
                                            @Html.ActionLink("Редактор", "Index", "Editor")
                                        </li>
                                    </ul>
                            </li>}
                        </ul>
                    </div>
  <div class ="align_center">
<div class ="align_to_left">  
<div class ="align_to_right"> 
<div class ="mainframeformainpage">

    @RenderBody()

</div>
</div>
</div>
</div>


</body>
</html>
